package colm.lagou.city.pojo;
/**
 * DROP TABLE IF EXISTS `tb_city`;
 * CREATE TABLE `tb_city` (
 *   `id`  varchar(20)  NOT NULL COMMENT '城市id',
 *   `cityname`  varchar(100)  DEFAULT NULL COMMENT '城市名称',
 *   `citydesc`  varchar(100)  DEFAULT NULL COMMENT '城市描述',
 *   `state`  varchar(1) DEFAULT NULL COMMENT '状态0禁用 1启用 2热门',
 *   `remark`  varchar(100)  DEFAULT NULL COMMENT '备注 ',
 *    `sort`    int(11) DEFAULT NULL COMMENT '排序 ',
 *   PRIMARY KEY (`id`)
 * )
 *
 */
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tb_city")
public class City {
    @Id
    private String id;
    private String cityname;
    private String citydesc;
    private String state;
    private String remark;
    private Integer sort;

    public City() {
    }

    public City(String id, String cityname, String citydesc, String state, String remark, Integer sort) {
        this.id = id;
        this.cityname = cityname;
        this.citydesc = citydesc;
        this.state = state;
        this.remark = remark;
        this.sort = sort;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCityname() {
        return cityname;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname;
    }

    public String getCitydesc() {
        return citydesc;
    }

    public void setCitydesc(String citydesc) {
        this.citydesc = citydesc;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "City{" +
                "id='" + id + '\'' +
                ", cityname='" + cityname + '\'' +
                ", citydesc='" + citydesc + '\'' +
                ", state='" + state + '\'' +
                ", remark='" + remark + '\'' +
                ", sort=" + sort +
                '}';
    }
}
